package com.ruoyi.crm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 采购退货单对象 return_purchase
 *
 * @author ruoyi
 * @date 2021-08-31
 */
public class ReturnPurchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 采购退货单编号 */
    @Excel(name = "采购退货单编号")
    private String returnNo;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 采购订单 */
    @Excel(name = "采购订单")
    private String opNo;

    /** 退货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnDate;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 仓库 */
    @Excel(name = "仓库")
    private String factory;

    /** 应退款 */
    @Excel(name = "应退款")
    private String refundS;

    /** 已退款 */
    @Excel(name = "已退款")
    private String refundY;

    /** 采购负责人 */
    @Excel(name = "采购负责人")
    private String follower;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setReturnNo(String returnNo)
    {
        this.returnNo = returnNo;
    }

    public String getReturnNo()
    {
        return returnNo;
    }
    public void setSupplierName(String supplierName)
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName()
    {
        return supplierName;
    }
    public void setOpNo(String opNo)
    {
        this.opNo = opNo;
    }

    public String getOpNo()
    {
        return opNo;
    }
    public void setReturnDate(Date returnDate)
    {
        this.returnDate = returnDate;
    }

    public Date getReturnDate()
    {
        return returnDate;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setFactory(String factory)
    {
        this.factory = factory;
    }

    public String getFactory()
    {
        return factory;
    }
    public void setRefundS(String refundS)
    {
        this.refundS = refundS;
    }

    public String getRefundS()
    {
        return refundS;
    }
    public void setRefundY(String refundY)
    {
        this.refundY = refundY;
    }

    public String getRefundY()
    {
        return refundY;
    }
    public void setFollower(String follower)
    {
        this.follower = follower;
    }

    public String getFollower()
    {
        return follower;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("returnNo", getReturnNo())
                .append("supplierName", getSupplierName())
                .append("opNo", getOpNo())
                .append("returnDate", getReturnDate())
                .append("status", getStatus())
                .append("factory", getFactory())
                .append("refundS", getRefundS())
                .append("refundY", getRefundY())
                .append("follower", getFollower())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}